package com.donzell.model;

import javax.persistence.AttributeOverride;
import javax.persistence.AttributeOverrides;
import javax.persistence.Column;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * EcsAdsense entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "ecs_adsense")
public class EcsAdsense implements java.io.Serializable {

	// Fields

	private EcsAdsenseId id;

	// Constructors

	/** default constructor */
	public EcsAdsense() {
	}

	/** full constructor */
	public EcsAdsense(EcsAdsenseId id) {
		this.id = id;
	}

	// Property accessors
	@EmbeddedId
	@AttributeOverrides({ @AttributeOverride(name = "fromAd", column = @Column(name = "from_ad", nullable = false) ),
			@AttributeOverride(name = "referer", column = @Column(name = "referer", nullable = false) ),
			@AttributeOverride(name = "clicks", column = @Column(name = "clicks", nullable = false) ) })
	public EcsAdsenseId getId() {
		return this.id;
	}

	public void setId(EcsAdsenseId id) {
		this.id = id;
	}

}